import request from '@/utils/request'

export function listcustomWaste(query) {
  return request({
    url: '/customWaste/list',
    method: 'get',
    params: query
  })
}

export function createcustomWaste(data) {
  return request({
    url: '/customWaste/create',
    method: 'post',
    data
  })
}

export function readcustomWaste(data) {
  return request({
    url: '/customWaste/get/' + data.id,
    method: 'get'
  })
}

export function updatecustomWaste(data) {
  return request({
    url: '/customWaste/update',
    method: 'post',
    data
  })
}

export function deletecustomWaste(data) {
  return request({
    url: '/customWaste/delete/' + data.id,
    method: 'delete'
  })
}

export function setStatus(data) {
  return request({
    url: '/customWaste/setStatus',
    method: 'post',
    data
  })
}
